﻿using Abp.Localization;

namespace Basefr.Modules
{
    public abstract class StartupModuleBase<TModule> : ModuleBase<TModule>
        where TModule : ModuleBase<TModule>
    {
        public override void PreInitialize()
        {
            Configuration.Localization.Languages.Add(new LanguageInfo("zh-cn", "中文", null, true, false));

            Configuration.Auditing.IsEnabled = true;
            Configuration.Auditing.IsEnabledForAnonymousUsers = true;

            Configuration.Authorization.IsEnabled = true;

            Configuration.MultiTenancy.IsEnabled = false;

            Configuration.EntityHistory.IsEnabled = false;
        }
    }
}
